﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class HoSoBenhNhanBUS
    {
        public static DataTable LayDanhSachHoSoBenhNhan()
        {
            return HoSoBenhNhanDAO.LayDanhSachHoSoBenhNhan();
        }

        public static void ThemHoSoBenhNhan(HoSoBenhNhanDTO obj)
        {
            HoSoBenhNhanDAO.ThemHoSoBenhNhan(obj);
        }

        public static void XoaHoSoBenhNhan(int maHoSoBenhNhan)
        {
            HoSoBenhNhanDAO.XoaHoSoBenhNhan(maHoSoBenhNhan);
        }

        public static void SuaHoSoBenhNhan(HoSoBenhNhanDTO obj)
        {
            HoSoBenhNhanDAO.SuaHoSoBenhNhan(obj);
        }

        public static DataTable TraCuuBenhNhan(string sql)
        {
            return HoSoBenhNhanDAO.TraCuuBenhNhan(sql);
        }

        public static HoSoBenhNhanDTO LayThongTinHoSoBenhNhanTheoHoSoBenhNhan(int maHoSoBenhNhan)
        {
            return HoSoBenhNhanDAO.LayThongTinHoSoBenhNhanTheoMaHoSoBenhNhan(maHoSoBenhNhan);
        }
    }
}
